package com.fido.kingkongview.holder

import android.view.View
import androidx.recyclerview.widget.RecyclerView

/**
 * @author: FiDo
 * @date: 2024/7/24
 * @des:
 */
abstract class KHolder<T>(itemView: View) : RecyclerView.ViewHolder(itemView) {

    init {
        initView(itemView)
    }

    protected abstract fun initView(itemView: View)

    abstract fun onBind(holder: KHolder<T>, data:T?, position:Int)

}